package com.yuan.yblog.search.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author hepeiyuan on 2024/6/1 23:11
 * @description 文章表数据变化消息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostMessage implements Serializable {

    @Serial
    private static final long serialVersionUID = -1L;

    /**
     * 文章id
     */
    Long id;

    /**
     * 操作类型
     */
    OperationType operationType;

    public enum OperationType {
        INSERT,
        UPDATE,
        DELETE;
    }

}
